#include "Seek.h"

SteeringOutput Seek::getSteering()
{
	SteeringOutput steering;

	D3DXVECTOR3 direction = target->getPosition() - character->getPosition();
	D3DXVec3Normalize(&direction, &direction);
	direction *= maxSpeed;

	steering.direction = direction;
	steering.rotation = 0.0f;

	return steering;
}

 